﻿@model LERP.Web.Controllers.ViewModels.GoodsCategoryViewModels.GoodsCategoryViewModel
@{
    ViewBag.Title = "新建货品类别";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>基本信息 </legend>
        <ul class="list_form">
        
            <li>
                @Html.LabelFor(model => model.DictionaryText)   
                @Html.TextBoxFor(model => model.DictionaryText, new { @class = "text-long" }) 
                @Html.ValidationMessageFor(model => model.DictionaryText)
            </li>
            <li>
                @Html.LabelFor(model => model.Level)
                @(Model.Level==0?"一级类别":"二级类别")
                @Html.HiddenFor(model => model.Level)
            </li>
            <li id="li_ParentId" style="display:@((Model.Level==1)?"inline":"none")">
                @Html.LabelFor(model => model.ParentId)   
                @Html.DropDownListFor(m => m.ParentId, (ViewBag.Parents as List<SelectListItem>),new { @class = "text-long" })   
                 @Html.ValidationMessageFor(model => model.ParentId)
            </li>
            
            
            <li> @Html.LabelFor(model => model.Remark)   
                @Html.TextAreaFor(model => model.Remark, new {rows="1" ,cols="1"}) 
                @Html.ValidationMessageFor(model => model.Remark)</li>
        </ul>
    </fieldset>
    
    <input type="submit" class="button-submit" value="保存" />
  
    <br />
    <br />
    <br />
} 
